package com.burns.rbac.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.burns.rbac.entity.Emp;
import com.burns.rbac.mapper.EmpMapper;
import com.burns.rbac.service.IEmpService;
import org.springframework.stereotype.Service;

@Service
public class EmpServiceImpl extends ServiceImpl<EmpMapper, Emp> implements IEmpService {
    /**
     * SQL是自己写的，而且还要借助mybatis plus的分页功能
     * @param page
     * @return
     */
    @Override
    public IPage empPage(Page<Emp> page) {
        return baseMapper.empPage(page);
    }
}
